const { connect } = require('camo')
const config = require('../config')

let connection = null

module.exports = {
  connection,

  Player: require('./Player'),

  async connect() {
    return connection = await connect(config.get('database_uri'))
  }
}
